﻿<?php 
	error_reporting(0);
	session_start();
	if (!isset($_SESSION['nowa'])) {
		session_regenerate_id();
		$_SESSION['block'] = false;
		$_SESSION['nowa'] = true;
		$_SESSION['adresuzytkownika'] = $_SERVER['REMOTE_ADDR'];
	}

	if($_SESSION['adresuzytkownika'] != $_SERVER['REMOTE_ADDR']) {
		session_destroy();
	}
	//error_reporting(E_ALL & ~E_NOTICE);

?>

<html>
<head>
<title>Zapisy - Logowanie</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
</head>
<body>
<h1>Zapisy - Logowanie</h1>
<form action="log.php" method="post">
login: <input type="text" name="login" /><br />
hasło: <input type="password" name="pass" /><br />
<input type="submit" value="Zaloguj" />
</form>

</body>
</html>
